//
//  YACalendarDate.h
//  WOFishingBoat
//
//  Created by 郑逸凯 on 2019/1/8.
//  Copyright © 2019年 郑逸凯. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface YACalendarDate : NSObject

+ (NSInteger)day:(NSDate *)date;
+ (NSInteger)month:(NSDate *)date;
+ (NSInteger)year:(NSDate *)date;

+ (NSInteger)firstWeekdayInThisMonth:(NSDate *)date;
+ (NSInteger)totaldaysInMonth:(NSDate *)date;

+ (NSDate *)lastMonth:(NSDate *)date;
+ (NSDate*)nextMonth:(NSDate *)date;

+ (NSDate*)dateWithYear:(NSInteger)year month:(NSInteger)month day:(NSInteger)day;

+ (NSString *)formatterString:(NSString *)string Date:(NSDate *)date;

@end

NS_ASSUME_NONNULL_END
